/**
 * @FileName State.java
 * @Package com.designMode.state
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-19 下午12:53:20
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.state;

/**
 * @author 顾博君
 * @ClassName State
 * @Date 2016-1-19 下午12:53:20
 * @Function 抽象状态角色
 */
public abstract class State {
    /**
     * 定义一个环境角色，提供子类访问
     */
    protected Context context;

    public Context getContext() {
        return context;
    }

    public void setContext(Context context) {
        this.context = context;
    }

    public abstract void handle1();

    public abstract void handle2();
}
